package com.zxp.javaee.thread;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author zxp
 * @date 2021/8/13 10:19
 */
@Slf4j
public class Thread02Thread extends Thread{

    private String name;

    public Thread02Thread(String name) {
        this.name = name;
    }

    @Override
    public void run() {

        log.debug("当前线程名:{}, 线程对象：{}",Thread.currentThread().getName(),name);
    }

    public static void main(String[] args) {
        new Thread02Thread("zxp").run();

        new Thread02Thread("zxp2").start();

    }
}
